﻿using System;
using System.Runtime.Serialization;
using LiSA_Server.Base.AbstractContracts;
using LiSA_Server.Base.Factories;
using LiSA_Service.ResearchProjects.Actioners;

namespace LiSA_Service.ResearchProjects.Dto.Commands
{
    [DataContract]
    public class ChangeProjectStatusCommand : Command
    {
        [DataMember]
        public bool NewStatus { get; set; }

        [DataMember]
        public Guid ProjectID { get; set; }
        public override void Execute()
        {
            ActionerFactory.Instance.Get<ProjectActioner>().ChangeProjectStatus(this);
        }
    }
}